import request from "@/utils/request.js";


export function getAdminTesterList(info) {
  return request({
    url: "/admin/plate/getTesterList.do",
    method: "post",
    data: info
  });
}

export function deleteAdminTester(id) {
  return request({
    url: `/admin/plate/deleteTester.do/${id}`,
    method: "delete"
  });
}

export function getAdminTesterDetail(id) {
  return request({
    url: `/admin/plate/getTesterDetail.do/${id}`,
    method: "get"
  });
}

export function editAdminTester(info) {
  return request({
    url: `/admin/plate/editAdminTester.do`,
    method: "post",
    data: info
  });
}

export function setAdminTesterSwitch(info) {
  return request({
    url: `/admin/plate/setAdminTesterSwitch.do`,
    method: "post",
    data: info
  });
}

export function emptyAdminTesterSwitch(cellId) {
  return request({
    url: `/admin/plate/emptyAdminTesterSwitch.do/${cellId}`,
    method: "post"
  });
}

export function emptyAdminTesterSwitchRow(cellId) {
  return request({
    url: `/admin/plate/emptyAdminTesterSwitchRow.do/${cellId}`,
    method: "post"
  });
}

export function emptyAdminTesterSwitchCol(cellId) {
  return request({
    url: `/admin/plate/emptyAdminTesterSwitchCol.do/${cellId}`,
    method: "post"
  });
}

export function forwardAdminTesterSwitch(cellId){
  return request({
    url: `/admin/plate/forwardAdminTesterSwitch.do/${cellId}`,
    method: "post"
  });
}

export function backwardAdminTesterSwitch(cellId){
  return request({
    url: `/admin/plate/backwardAdminTesterSwitch.do/${cellId}`,
    method: "post"
  });
}

export function calAdminTesterPrice(id){
  return request({
    url: `/admin/plate/calAdminTesterPrice.do/${id}`,
    method: "post"
  });
}

export function checkoutAdminTester(id){
  return request({
    url: `/admin/plate/checkoutAdminTester.do/${id}`,
    method: "post"
  });
}

export function showListAdminTester(id){
  return request({
    url: `/admin/plate/showListAdminTester.do/${id}`,
    method: "post"
  });
}

export function autoChooseAdminTester(id){
  return request({
    url: `/admin/plate/autoChooseAdminTester.do/${id}`,
    method: "post"
  });
}
export function autoAdminProduceTester(data){
  return request({
      url: `/admin/plate/autoAdminProduceTester.do`,
      method: "post",
      data: data
  });
}

export function resizeAdminTester(data){
  return request({
      url: `/admin/plate/resizeAdminTester.do`,
      method: "post",
      data: data
  });
}

export function autoAdminPlaceTester(id){
  return request({
      url: `/admin/plate/autoAdminPlaceTester.do/${id}`,
      method: "post"
  });
}